package com.shenma2009.service;

import com.shenma2009.domain.ResultResponse;
import com.shenma2009.vo.CommParamVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.*;

/**
 * @author 军哥
 * @version 1.0
 * @description: ITestApiService
 * @date 2023/5/17 14:58
 */

@Service
@FeignClient(url = "https://shenmazong.com",name = "test")
public interface ITestApiService {

    @RequestMapping(value = "/test/getMd5",method = RequestMethod.GET)
    public ResultResponse getMd5(@RequestParam("message") String message);

    @RequestMapping(value = "/test/sendEmail",method = RequestMethod.POST)
    public ResultResponse sendEmail(@RequestBody CommParamVo commParamVo);

    @GetMapping(value = "/test/sendSms/{userId}/{message}")
    public ResultResponse sendSms(@PathVariable("userId") Integer userId, @PathVariable("message") String message);

    @RequestMapping(value = "/test/login",method = RequestMethod.POST)
    public ResultResponse login(@RequestParam("username") String userName, @RequestParam("userpass") String userPass);

    @RequestMapping(value = "/test/getRandCode",method = RequestMethod.GET)
    public ResultResponse getRandCode();
}
